package com.hmall.search.Service;

import com.hmall.search.domain.po.ItemDoc;
import com.hmall.search.domain.query.ItemPageQuery;
import com.hmall.search.domain.vo.PageVO;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.List;
import java.util.Map;

@Service
public interface ISearchService{
    void saveItemById(Long itemId) throws IOException;

    void deleteItemById(Long itemId);

    PageVO<ItemDoc> search(ItemPageQuery query);

    Map<String, List<String>> filters(ItemPageQuery query);
}
